<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ViewHelper
 *
 * @author chaporgin_a
 */
abstract class VA_Form_ViewHelper {
  /**
   * 
   * @var VA_Form_FormElement
   */
  private $element = null;
  public function setElement(VA_Form_FormElement $element){
    $this->element = $element;
  }
  /**
   * Proxy for element's printable value
   * @return string
   */
  public function getValueOfElement(){
    return $this->element->getPrintableValue();
  }
  /**
   * To callback element's methods
   * @return VA_Form_FormElement 
   */
  public function getElement(){
    return $this->element;
  }
  /**
   * to wrap FormElement into some html
   * @return string
   */
  abstract public function wrap();
}

